package com.mes.cotask.manager;


import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.mes.cotask.manager.iface.ICotaskDetailManager;
import com.mes.cotask.dao.CotaskDetailDao;
import com.mes.cotask.domain.CotaskDetail;
import com.mes.common.manager.BasicManager;

@Component
public class CotaskDetailManager extends BasicManager<CotaskDetail> implements ICotaskDetailManager {

	private static final Log logger = LogFactory.getLog(CotaskDetailManager.class);

	@Autowired
	CotaskDetailDao cotaskDetailDao;
	
	public boolean isExistByTaskUid(String taskUid) throws Exception{
		return !cotaskDetailDao.findByProperty("taskUid", taskUid).isEmpty();
	}
}
